package cn.wwxula.common.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author liyang23
 * @date 2024/12/09 17:54
 **/
@Data
@EqualsAndHashCode(callSuper = true)
public class CommonException extends RuntimeException{
    /**
     * 返回状态码
     */
    private int code;

    public CommonException(int code, String msg) {
        super(msg);
        this.code = code;
    }
}
